import { Button, Result } from "antd";
import { useNavigate } from "umi";

export default function NotFount() {
  const navigate = useNavigate()

  const backToHome = () => {
    navigate("/")
  }

  return <>
     <Result
      status="404"
      title="404"
      subTitle="你要找的页面不见了哦！！"
      extra={<Button type="primary" onClick={() => {backToHome()}}>首页</Button>}
  />
  </>
}